<%--
  User: Albert
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>JSP的四大域对象-02</title>
</head>
<body>

    <%--
      JSP的四大域对象：

    --%>
    <%
        // 获取域对象中的值
        out.print("page 范围：" + pageContext.getAttribute("name1") + "<br>");
        out.print("request 范围：" + request.getAttribute("name2") + "<br>");
        out.print("session 范围：" + session.getAttribute("name3") + "<br>");
        out.print("application 范围：" + application.getAttribute("name4") + "<br>");
    %>

</body>
</html>